package org.aurora.common.util;

import java.io.BufferedInputStream;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Properties;

public class PropertiesUtil {
    public static Properties loadConfig(String fileName) throws Exception {
        InputStream in = new BufferedInputStream(Files.newInputStream(Paths.get(fileName)));
        Properties properties = new Properties();
        properties.load(in);
        in.close();
        return properties;
    }
}
